//
// Created on 2024/3/18.
//
// Node APIs are not fully supported. To solve the compilation error of the interface cannot be found,
// please include "napi/native_api.h".

#ifndef OHOS_OHOSEditBoxHandlerHANDLER_H
#define OHOS_OHOSEditBoxHandlerHANDLER_H
#include "napi/adapter/EditBoxHandler.h"
class OhosEditBoxHandler: EditBoxHandler{
    public:
        /**--------------------text input callback回调-----------------------**/
        virtual void onTextInputBeginEvent(int32_t id, bool hasFocus, bool isDone);
        virtual void onTextInputEditingEvent(int32_t id, const char *newString);
        virtual void onTextInputEnterEvent(int32_t id, bool hasFocus, bool isDone);

        /**--------------------text area callback回调-----------------------**/
        virtual void onTextAreaBeginEvent(int32_t id, bool hasFocus, bool isDone);
        virtual void onTextAreaEditingEvent(int32_t id, const char *newString);
        virtual void onTextAreaEnterEvent(int32_t id, bool hasFocus, bool isDone);
        OhosEditBoxHandler();
};

#endif //OHOS_OHOSEditBoxHandlerHANDLER_H
